import { AllInOneData, FilterableEbbinghausPage } from '@/lib/FilterableEbbinghausPage';
import { loadYaml } from '@/lib/loadYaml';

async function fetchPageData(): Promise<AllInOneData> {
  return await loadYaml(`data/all-in-one.yml`);
}

export const metadata = {
  title: '声律启蒙',
  description: '使用艾宾浩斯记忆法学习声律启蒙',
};

export default async function Page() {
  const { tags, data } = await fetchPageData();
  return <FilterableEbbinghausPage tags={tags} data={data} />;
}
